home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / source / transblt / makefile < prev    next >
Encoding:
Makefile  |  1992-09-21  |  3.2 KB  |  164 lines

  1. #
  2. #   Makefile for PALFX (Palette Efects as described in Graphics Design and
  3. #    Optimization).
  4. #
  5. #     (C) Copyright Microsoft Corp. 1991, 1992.  All rights reserved.
  6. #
  7. #     You have a royalty-free right to use, modify, reproduce and 
  8. #     distribute the Sample Files (and/or any modified version) in 
  9. #     any way you find useful, provided that you agree that 
  10. #     Microsoft has no warranty obligations or liability for any 
  11. #     Sample Application Files which are modified. 
  12. #     
  13. #     If you did not get this from Microsoft Sources, then it may not be the
  14. #     most current version.  This sample code in particular will be updated
  15. #     and include more documentation.  
  16. #
  17. #     Sources are:
  18. #         The MM Sys File Transfer BBS: The phone number is 206 936-4082.
  19. #    CompuServe: WINSDK forum, MDK section.
  20. #    Anon FTP from ftp.uu.net in vendor/microsoft/multimedia
  21. #
  22. #   to make a NON-DEBUG build, type the following line:
  23. #       nmake DEBUG=NO
  24. #   just typing 'nmake' will build a DEBUG build
  25. #
  26. #   You can also set the environment variable DEBUG to NO
  27. #
  28.  
  29. # set MASM6 to TRUE to use MASM 6
  30. #
  31. # let environment variable overide...
  32. !IF "$(MASM6)" == ""
  33. MASM6    = FALSE
  34. !endif
  35.  
  36. NAME    = transblt
  37. MISC    = makefile
  38.  
  39. OPTZ    = -AM -G2sw 
  40. # turn this on if you want to see assembler that is generated: 
  41. #OPTZ    = -AM -G2sw -Fc
  42.  
  43. INCS    = $(NAME).h  
  44. SRCS    = $(NAME).c  
  45. OBJ1    = $(NAME).obj
  46. OBJ2    = tblt.obj
  47. OBJ3    = 
  48. OBJS    = $(OBJ1) $(OBJ2) $(OBJ3)
  49. LIBS    = libw mmsystem mlibcew commdlg shell
  50.  
  51.  
  52. !IF "$(DEBUG)" == "NO"
  53.  
  54. DEF     =
  55. ASOPT   =
  56. CCOPT   =-Oxwt
  57. RCOPT   =
  58. LNOPT   =
  59.  
  60. !ELSE
  61.  
  62. DEF     = -DDEBUG
  63. ASOPT   = -Zi
  64. CCOPT   = -Zid -Od
  65. RCOPT   =
  66. LNOPT   = /CO/LI
  67.  
  68. !ENDIF
  69.  
  70. !if "$(MASM6)" == "TRUE"
  71. # masm 6.x
  72. AS  = mlx -DMASM6 -I. /Zm /c $(DEF) -Cx $(ASOPT)
  73. !else
  74. AS  = masm $(DEF) -Mx $(ASOPT)
  75. !endif
  76.  
  77. CC  = cl $(DEF) -c $(OPTZ) -W3 -Zpe $(CCOPT)
  78. RC  = rc $(DEF) -v $(RCOPT)
  79. LN  = link /NOPACKC/NOE/NOD/A:16/MAP $(LNOPT)
  80.  
  81. .asm.obj:
  82.             $(AS) $*;
  83.  
  84. .c.obj  :
  85.             $(CC) $*.c
  86.  
  87.  
  88. #
  89. #   RULES
  90. #
  91.  
  92. all :  $(NAME).exe
  93.  
  94.  
  95. $(NAME).exe ::   $(OBJS) $(NAME).res $(NAME).def
  96.     $(LN) @<<
  97.     $(OBJ1)+
  98.     $(OBJ2)+
  99.     $(OBJ3),
  100.     $(NAME).exe,
  101.     $(NAME).map,
  102.     $(LIBS),
  103.     $(NAME).def
  104. <<
  105.     $(RC) -t $(NAME).res
  106. !IF "$(DEBUG)" == "NO"
  107. !else
  108.     -cvpack -p $(NAME).exe
  109.     -mapsym $(NAME).map
  110. !endif
  111.  
  112. $(NAME).exe ::   $(NAME).res
  113.     $(RC) -t $(NAME).res
  114.  
  115.  
  116. #
  117. #   SEGMENTATION
  118. #
  119.  
  120. SEGC = $(CC) -NT TSEG $*.c
  121.  
  122. !if "$(MASM6)" == "TRUE"
  123. # masm 6.x
  124. SEGA = $(AS) -DSEGNAME=TSEG -Ta $*.asm
  125. !else
  126. # masm 5.x
  127. SEGA = $(AS) -DSEGNAME=TSEG $* ;
  128. !endif
  129.  
  130. $(NAME).obj     : ; $(SEGC:TSEG=_TEXT)
  131. effect.obj      : ; $(SEGC:TSEG=EFFECT_TEXT)
  132. sort.obj    : ; $(SEGC:TSEG=SORT_TEXT)
  133. mem.obj        : ; $(SEGA:TSEG=MEM_TEXT)
  134. dib.obj        : ; $(SEGC:TSEG=DIB_TEXT)
  135.  
  136.  
  137. $(NAME).res: $(NAME).rc $(NAME).ico $(NAME).h $(NAME).rcv sampver.h sampver.ver
  138.     rc -r $(NAME).rc
  139.  
  140. #
  141. #   DEPENDENCIES
  142. #
  143.  
  144. $(NAME).obj :   $(NAME).c $(NAME).h tblt.h
  145.  
  146. tblt.obj    : tblt.c tblt.h
  147.  
  148.  
  149. #
  150. #   MISC. STUFF
  151. #
  152.  
  153. clean   :
  154.             del *.exe
  155.             del *.lib
  156.             del *.cod
  157.             del *.err
  158.             del *.res
  159.             del *.obj
  160.             del *.map
  161.             del *.sym
  162.             del *.zip
  163.  
  164.